package com.zjc.test;/*
 *
 *作者：张继成
 *任务：redis序列化测试
 *
 *备注：
 *@Date2023/06/22/14:17
 ***/

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
public class redisTset {
    @Autowired
    private RedisTemplate redisTemplate;
    @Test
    public void testString(){
        redisTemplate.opsForValue().set("18578034273","55555555555");

        String value = (String) redisTemplate.opsForValue().get("18578034273");
        System.out.println(value);
    }
}
